home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_c
/
cuj0696.zip
/
DWYER.ZIP
/
SPECTRAL.TST
/
PUTXFLT.CX
< prev
next >
Wrap
Text File
|
1996-03-07
|
825b
|
28 lines
/* ============ */
/* PutXFlt.cx */
/* ============ */
#include <stdio.h>
#include <xtendefs.h>
#include <string.h>
/* ========================================================= */
/* PutXFlt - Prints extended value in float format on stdout */
/* ========================================================= */
void
PutXFlt(USHORT *XFlt, short NFlt, short MinFld)
{
char AscVal[128] = {0};
short CharCt;
XTOASC(XFlt, AscVal, NFlt); /* Convert to ASCII */
printf(AscVal);
/* -------------------------------------------------------- */
/* Fill field with blanks on the right to MinFld characters */
/* -------------------------------------------------------- */
for (CharCt = (short)strlen(AscVal); CharCt < MinFld; ++CharCt)
{
printf(" ");
}
}